package com.sjq.model.request;

import com.sjq.model.common.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Transient;

/**
 * @author: sjq
 * @create: 2021-12-08
 **/
@ApiModel("查询内容")
@Data
@Accessors(chain = true)
public class ContentDto {

    @ApiModelProperty("查询摘要")
    private String content;

    @ApiModelProperty("分类id")
    private Long classificationId;

//    @ApiModelProperty("用户角色：作者or专家")
//    private String userRole;

    @ApiModelProperty("查询审稿状态：0：false 1：true")
    private Long status;

    @ApiModelProperty("查询审稿状态：0：false 1：true")
    private Long expertStatus;

    /** 排序的列名 */
    @ApiModelProperty("排序的列名,默认’time‘,还可填’avg_level：稿件评价评分‘，’count：稿件评论数量‘")
    @Transient
    private String sidx="time";

    /** 排序规则(DESC或者ASC) */
    @ApiModelProperty("排序规则(DESC或者ASC)，默认’DESC‘")
    @Transient
    private String sord="DESC";
}
